#ifndef __MODULE_SPEECH_MANAGER_H
#define __MODULE_SPEECH_MANAGER_H

#pragma once
#include "UIModule.h"
#include "HybridSpeechRecognizer.h"
#include "TTSEngine.h"

class UISpeechManager : public UIModule
{
public:
	UISpeechManager(void);
	~UISpeechManager(void);
	
	bool processSyncEvent(UIEvent* event);
	bool processAsyncEvent(UIEvent* event);
	bool processData(UIEvent* event);
	bool cancel(void);

private:
	HybridSpeechRecognizer* m_hybridSR;
	TTSEngine*				m_ttsEngine;
	
	std::string				getSpeechLogFile(int sessionID);
	std::string				m_speechLogPrefix;

	std::string				getTTSLogFile(int sessionID);
	std::string				m_ttsLogPrefix;
	
	int						m_speechLogID;
	int						m_ttsLogID;
};

#endif